<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*-----------------------------------------------------------------------------------------------
get product group
-----------------------------------------------------------------------------------------------*/
class Get_prod_gps_block extends Front_Controller{

	function Get_prod_gps_block(){
        parent::Front_Controller();
	}
	
	function index(){
		$CI = &get_instance();
		$CI->db->select('f.*');
		$CI->db->from(FIELDS.' f');		
		$CI->db->where(FIELDS_STATUS,1);
		$q = $CI->db->get();
		$fields = $q->result();			
		$this->add('fields', $fields);
	
        $this->view(get_class($this));
	}
}